var fs = require("fs");

var data = fs.readFileSync("input.text");

console.log(data.toString());
console.log("读取成功")

data = fs.readFile("input.text", function(err, data){
    if(err) return console.error(err);
    console.log(data.toString())
});
console.log("读取成功")